package com.dd.cloud.user.entity.patient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "用户投诉表")
public class PatientUserComplaint {

    /**
     * 数据表说明:主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;

    /**
     * 用户id
     */
    @Column(comment = "用户id")
    private Integer userId;

    /**
     * 患者id
     */
    @Column(comment = "患者id")
    private String medId;

    /**
     * 问诊订单id
     */
    @Column(comment = "问诊订单id")
    private Integer consultId;

    /**
     * 投诉原因
     */
    @Column(comment = "投诉原因", length = 256)
    private String reason;

    /**
     * 内容
     */
    @Column(comment = "内容", type = MySqlTypeConstant.TEXT)
    private String content;

    /**
     * 图片
     */
    @Column(comment = "图片",length = 512)
    private String url;

    /**
     * 回复
     */
    @Column(comment = "回复", length = 256)
    private String reply;

    /**
     * 投诉时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @Column(comment = "更新时间",defaultValue = "now()")
    private LocalDateTime updateDateTime;

}
